package com.zjeav.lingjiao.base.tools;

public class TimeTools {
    public static String getDuration(Long dur) {
        long min = dur / 60;
        long sec = dur % 60;
        String minstr = "";
        String secstr = "";
        if (min < 10) {
            minstr = "0" + min;
        } else {
            minstr = "" + min;
        }
        if (sec < 10) {
            secstr = "0" + sec;
        } else {
            secstr = "" + sec;
        }
        return minstr + ":" + secstr;
    }
}
